<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>ceshi1111</h1>
<table class="table table-bordered">
    <thead>
    <tr align="center">
        <td>新闻编号</td>
        <td>新闻标题</td>
        <td>作者</td>
        <td>创建时间</td>
        <td>评论量</td>
        <td>操作</td>
    </tr>
    </thead>


    <tr th:each="list : ${newsList}">
        <td th:text="${list.newsCode}">Onions</td>
        <td th:text="${list.title}">2.41</td>
    </tr>

</table>
</body>
</html>